<?php

namespace App\Http\Controllers\Admin;

use App\Http\Requests\PasswordRequest;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class PassowrdController extends Controller
{
    public function ChangePassword(){
        //加载修改资料模板
        return view('admin.password.password');
    }

    public function password(Request $request,PasswordRequest $passwordRequest){
        //能进入到这里,就直接将密码修改就OK
        //此处省略改密码的功能...
        session()->flash('success','密码修改成功,请牢记!!');
        return redirect()->back();
    }
}
